import { defAxios as request } from '@/utils/http';

/**
 * 审核日志
 * @returns {*}
 */
export function useHomeApi() {
	return {
		getAuditCount(params) {
			return request({
				url: '/home/getAuditCount',
				method: 'post',
				params: {
					year: params,
				},
			});
		},
		getWaitDealTask() {
			return request({
				url: '/home/getWaitDealTask',
				method: 'post',
				data: {},
			});
		},
		/**
		 * 获取首页待评审任务数量
		 */
		getRewiewTaskCount () {
			return request({
				url: '/home/getWillRewiewTaskCount',
				method: 'post',
				data: {},
			})
		},

		getHomeTask (params) {
			return request({
				url: '/home/task',
				method: 'post',
				data: params,
			})
		}
	};
}
